 package com.zx.cloud.controller.client;

import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import com.zx.cloud.ApiVersion;
import com.zx.cloud.model.response.ObjectDataResponse;

/**
 * @author Alex
 */
@FeignClient(name = ProviderClient.SERVICE_ID, fallback = ProviderClientFallback.class)
public interface ProviderClient {
	
    /**
     * eureka service name
     */
    String SERVICE_ID = "trade-provider";
    
    @RequestMapping(value =ApiVersion.PROVIDER_V1_PREFIX+"/task/buildOverdue", method = RequestMethod.POST)
	ObjectDataResponse<Integer> buildOverdue();
    
    @RequestMapping(value =ApiVersion.PROVIDER_V1_PREFIX+"/task/withhold", method = RequestMethod.POST)
   	ObjectDataResponse<Integer> withhold();
}
